package pt.mauromad.guias.utils;

import pt.mauromad.guias.utils.generic.EnumDao;

public class EnumUtils {

	@SafeVarargs
	public static <T extends EnumDao<?>> T byId(long id, T... list) {
		for (T t : list) {
			if (t.getId() == id)
				return t;
		}

		return null;
	}

}
